package SV_SENSITIVE_OBJ;
import java.io.IOException;
import java.io.OutputStream;
public class Fixed_01 {
    public class WriteInfo {
        public void write(ObjectOutputStream oos, User user) throws IOException {
            oos.writeObject(user);
        }
        public static class User {
            public int encryptedSSN = encrypt(1234);
            public static int encrypt(int value) {
                int encrypted;
                // ... do encryption
                return encrypted;
            }
        }
    }
}
